package com.refactor.practice;

import com.refactor.practice.movieType.MovieType;
import com.refactor.practice.movieType.MovieTypeEnum;

public class Movie {

	private MovieType _movieType;
	private String _title;

	public Movie(String title, MovieTypeEnum movieType) {
		_title = title;
		_movieType = movieType.getInctance();
	}

	public String getTitle() {
		return _title;
	}

	public Double getAmount(int daysRanted) {
		return _movieType.getAmount(daysRanted);
	}

	public int getFrequentRenterPoints(int daysRented) {
		return _movieType.getFrequentRenterPoints(daysRented);
	}
}
